﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.BaseInfo.DTO.Department;

/// <summary>
///     部门新增模型
/// </summary>
public class DepartmentAddDTO
{
    /// <summary>
    ///     编码
    /// </summary>
    [Required(ErrorMessage = "部门编码不可为空")]
    public string Code { get; set; }

    /// <summary>
    ///     部门名称
    /// </summary>
    [Required(ErrorMessage = "部门名称不可为空")]
    public string Name { get; set; }

    /// <summary>
    ///     上级部门
    /// </summary>
    public string? SuperiorId { get; set; }
}